package com.lm.scau.dyb.activity.base;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.lm.scau.dyb.R;
import com.lm.scau.dyb.fragment.TitleFragment;

/**
 * Function:
 * auth：liming on 2016/8/30 09:01
 * mail：liming@wxchina.com
 */
public class NoticeActivity extends BaseActivity {
    private TitleFragment titleBar;
    private TextView title;
    private TextView time;
    private TextView info;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notice);
        initView();
        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();
        title.setText(bundle.getString("noticeTitle"));
        time.setText(bundle.getString("noticeTime"));
        info.setText(bundle.getString("noticeInfo"));
    }

    private void initView() {
        titleBar = (TitleFragment) getSupportFragmentManager().findFragmentById(R.id.title_fragment);
        titleBar.initTitle(false,true,"公告详情");
        title = (TextView) findViewById(R.id.notice_title_text_view);
        time = (TextView) findViewById(R.id.notice_time_text_view);
        info = (TextView) findViewById(R.id.notice_into_text_view);
    }
}
